package com.ruoyi.client.mapper;

import com.ruoyi.client.pojo.vo.BookShelfVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.awt.print.Book;
import java.util.List;

@Repository
public interface BookShelfMapper {
    List<BookShelfVo> list(Long userId);
    int addBookShelf(BookShelfVo bookShelfVo);
    BookShelfVo selectByUserIdAndNovelId(@Param("userId") Long userId,@Param("novelId")Long novelId);
    boolean deleteBookshelf(long[] ids);
    int update(BookShelfVo bookShelfVo);

    int updateCheckAll(@Param("userId") Long userId,@Param("isCheck") Integer isCheck);
    List<BookShelfVo> listCheck(Long userId);
    boolean deleteAll(Long userId);

}